package yyy.ab.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import yyy.ab.modules.system.entity.SysRole;
import yyy.ab.modules.system.entity.dto.SysRoleSmallDto;

import java.util.List;

/**
 * 系统角色mapper
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

    @Select("select id as value,code,name from sys_role order by id asc")
    List<SysRoleSmallDto> findSmallList();
}
